From a31dc93b20bd7e351921c58fd07b3b16e2c8e83e Mon Sep 17 00:00:00 2001 From: Daniel Kiper Date: Wed, 7 Dec 2016 14:37:11 +0100 Subject: [PATCH] x86: allow EFI reboot method neither on non-EFI platforms... ... nor EFI platforms with runtime services enabled. Suggested-by: Jan Beulich Signed-off-by: Daniel Kiper Acked-by: Jan Beulich --- xen/arch/x86/shutdown.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/shutdown.c b/xen/arch/x86/shutdown.c index 7a1a73a223..55f68403f4 100644 --- a/xen/arch/x86/shutdown.c +++ b/xen/arch/x86/shutdown.c @@ -80,6 +80,9 @@ static void __init set_reboot_type(char *str) break; str++; } + + if ( reboot_type == BOOT_EFI && !efi_enabled(EFI_RS) ) + reboot_type = BOOT_INVALID; } custom_param("reboot", set_reboot_type); -- 2.30.2